#include "Symbol.h"
#include<iostream>

bool Symbol::operator < (Symbol xSymbol)
{
	return (this->m_sName) < (xSymbol.m_sName);
}

void Symbol::print()
{
	static char* asSymbolType[]=
	{
		"Unknown",
		"Function",
		"Variable",
		"DataType",
		"Attribute"
	};

	using namespace std;

	cout<<asSymbolType[m_eSymbolType]<<":"<<m_sName <<":"<< m_sTypePrefix << ":" <<m_xDefinition.m_nLineNumber<< endl;
}

